node {
    stage('git chekout') {
        git branch: "master", url: 'https://gitee.com/fastjrun/demo.git'
    }
    stage('UT') {
        sh 'mkdir -p demo-base/src/main/java && mvn clean verify -pl demo-jacoco-report -am -Put -Dbdgc.skip=false'
    }
    stage('parallel publish report') {
        parallel (
                'jacoco': {
                    jacoco()
                },
                'testng-result': {
                    step([$class: 'hudson.plugins.testng.Publisher', reportFilenamePattern: 'target/surefire-reports/testng-results.xml'])
                }
        )
    }

}